<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
        <script src="https://cdn.tailwindcss.com"></script>
    </head>
    <body>
        <div class="container lg mx-auto">222</div>
        <section class="m-3 p-5 border-2 border-black-500">
            <h1 class="text-lg text-red-500 font-bold">外边距margin</h1>
            <div class="bg-slate-600 my-4">margin-top</div>
            <div class="bg-zinc-400 my-4">margin-bottom</div>
            <div class="bg-emerald-600 m-4">margin-left</div>
            <div class="bg-[#ff0000] ml-6">margin-right</div>
            <div class="bg-green-600 ml-6 mt-4">margin-right</div>
            <div class="bg-blue-600 mr-[20px] mt-[10px]">自定义外边距</div>
        </section>

        <section class="m-3 p-5 border-2 border-black-500">
            <h1 class="text-lg text-red-500 font-bold">内边距padding</h1>
            <div class="bg-slate-600 p-4 mb-2 text-white">p-4</div>
            <div class="bg-zinc-400 px-4 mb-2 py-4 text-white">px-4 py-4</div>
            <div class="bg-emerald-600 pl-6 pt-4 text-white">px-4 py-4</div>
        </section>

        <section class="m-3 p-5 border-2 border-black-500">
            <h1 class="text-lg text-red-500 font-bold">Flex横轴间距</h1>
            <ul class="flex space-x-6">
                <li class="p-3 bg-red-900 text-white">01</li>
                <li class="p-3 bg-red-900 text-white">02</li>
                <li class="p-3 bg-red-900 text-white">03</li>
            </ul>
        </section>

        <section class="m-3 p-5 border-2 border-black-500">
            <h1 class="text-lg text-red-500 font-bold">Flex纵轴间距</h1>
            <ul class="flex flex-col space-y-2">
                <li class="p-3 bg-red-900 text-white">01</li>
                <li class="p-3 bg-red-900 text-white">02</li>
                <li class="p-3 bg-red-900 text-white">03</li>
            </ul>
        </section>
    </body>
</html>
